package com.njtoyo.taxi.admin.rest.presenter.business.ride.marking;

import com.njtoyo.taxi.admin.mapper.master.enums.RideCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.RidePlatform;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class RideMarkingPagePresenter implements Serializable {
    @ApiModelProperty(value = "评价id")
    private Long id;

    @ApiModelProperty(value = "评价内容")
    private String comment;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "乘客")
    private RideMarkingCustomerData customer;

    @ApiModelProperty(value = "司机")
    private RideMarkingDriverData driver;

    @ApiModelProperty(value = "行程")
    private RideMarkingRideData ride;

    @ApiModelProperty(value = "评分")
    private Integer score;

    @ApiModelProperty(value = "评价标签")
    private Long[] tag;

    @ApiModelProperty(value = "修改时间")
    private Date updatedAt;

    @Data
    public static class RideMarkingCustomerData {
        @ApiModelProperty(value = "乘客")
        private Long id;

        @ApiModelProperty(value = "姓名")
        private String name;

        @ApiModelProperty(value = "手机号码")
        private String mobileNumber;
    }

    @Data
    public static class RideMarkingRideData {
        @ApiModelProperty(value = "行程id")
        private Long id;

        @ApiModelProperty(value = "行程编号")
        private String number;

        @ApiModelProperty(value = "0:realtime,1:appointment,2:assign")
        private RideCategory category;

        @ApiModelProperty(value = "0:wxmina(微信小程序),1:app(APP),2:h5(h5网页),3:webkit(全澄通),4:h5Market(h5本地生活)")
        private RidePlatform platform;

        private String originPlaceName;
        private String destinationPlaceName;
    }

    @Data
    public static class RideMarkingDriverData {
        @ApiModelProperty(value = "司机ID")
        private Long id;

        @ApiModelProperty(value = "司机姓名")
        private String name;

        @ApiModelProperty(value = "手机号码")
        private String mobileNumber;
    }
}
